<?php /* Smarty version Smarty-3.1.13, created on 2014-11-18 23:31:34
         compiled from "D:\PHPWeb\cms\templates\user_center\shareorder.tpl" */ ?>
<?php /*%%SmartyHeaderCode:20366544e517c4c9d58-85520020%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '415eae64d008d7030e67f19cf08bb6ccc441ba2c' => 
    array (
      0 => 'D:\\PHPWeb\\cms\\templates\\user_center\\shareorder.tpl',
      1 => 1416324693,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '20366544e517c4c9d58-85520020',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_544e517d5468e6_64184160',
  'variables' => 
  array (
    'username' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_544e517d5468e6_64184160')) {function content_544e517d5468e6_64184160($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("layouts/operation/header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<div class="jifensq">
	<div class="jifensq-top column1080">
    	 <div class="jifensq-top-l f_l">
         	<img src="public/operation/photo/sq-suer-i.png">
         </div>
         <div class="jifensq-top-r f_l">
         	<h4>Apply rules</h4>
            <p>
            1,You should be the Member of our site.<br>
			2,You need shopping through our site.<br>
			3,Please fill the application seriously.<br>
			4,The points will reach you after the deal close.<br>
			5,After submit the application, please pay attention to the order
			 progress and our customer service will check it for you manually,
			  any query please leave a message for your application.<br>
			6,After confirmation, the points will be sent to your account automatically within a week.<br>
            </p>
         </div>
    </div>
    <div class="jifensq-dow">
    	<h3>My application</h3>
        <p>I'm <font id="username"><?php echo $_smarty_tpl->tpl_vars['username']->value;?>
</font>, I now apply to items I purchased Points:</p>
        <form id="form" class="pointsapplication" >
        	<textarea style="width:100%; height:140px; border:1px solid #ccc; border-radius:4px;" name="content" id="content"></textarea><br>
			<input type="button" id="submitBtn">
        </form>
    </div>   
</div> 
<?php echo $_smarty_tpl->getSubTemplate ("layouts/operation/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>



<script>

    $().ready(function(){
        $("[href^='#']").click(function (){location.hash=$(this).attr("href"); return false;});
        $('#myTab a').click(function (e) {
            e.preventDefault();
            $(this).tab('show');
        })

        $("#submitBtn").click(function(){
            var username = $("#username").html();
            if(!username){
                alert("please login first");
                return;
            }
            var content = $("#content").val();
            if(!content||content.trim().length<1){
                alert("apply content can't be null");
                return;
            }
            $.ajax({
                type: 'POST',
                url: '<?php echo @constant('WEBSITE_URL');?>
applypoints/submitContent',
                data: $('#form').serialize(),
                success: function(data){
                    alert("success");
                }

            });
        });
    });

</script><?php }} ?>